package com.kandinfo.survey.common.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Query;

import com.kandinfo.base.common.repository.BaseRepository;
import com.kandinfo.survey.common.domain.QuestionnaireDetail;

public interface QuestionnaireDetailRepository extends BaseRepository<QuestionnaireDetail, Long> {

    @Query(value = "select * from questionnaire_detail where questionnaire_id=?1 and status='1' ", nativeQuery = true)
    List<QuestionnaireDetail> findOneDetailByQuesnaireId(Long questionnaireId);

}
